Formal Semantics of the CDL Language
نویسندگان
چکیده
We reverse-engineer a formal semantics of the Component Definition Language (CDL), which is part of the highly configurable, embedded operating system eCos. This work provides the basis for an analysis and comparison of the two variability-modeling languages Kconfig and CDL. The semantics given in this document are based on analyzing the CDL documentation, inspecting the source code of the toolchain as well as testing the tools on particular examples. 1 Semantics 1.1 Abstract Syntax Features, types and constraints. Let Id be a finite set of features, let Kinds be a set of domain-specific feature kinds and let Flavors be a set of types that further define a feature’s possible values. More precisely, Kinds = {package, component, option, interface} and Flavors = {none, bool, booldata, data}. Furthermore, we introduce two types of expressions allowed in CDL: Goal expressions and list expressions. Concerning the first one, we define Exp(Id) to be a set of goal expressions over Id, generated by the following grammar: e ::= id | const | e⊗ e |!e | ̃e | e⊕ e | e⊘ e | Func(e, e, ...) | e?e : e (1) Here, ⊗ ∈ {||,&&, implies, eqv, xor}, ⊕ ∈ {+,−, ∗, /,%, <<,>>, ˆ,&, |}, ⊘ ∈ {==, !=, <,>,<=, >=}, Func ∈{get data, is active, is enabled, is loaded, is substr, is xsubstr, version cmp}, id ∈ Id and const ∈ Data, whereas Data is a set of untyped data (say all character strings). The second type of expressions, so-called list expressions represent an enumeration of values or ranges, which can be computed by goal expressions. Thus, we define LExp(Id) to be a set of list expressions over goal expressions, generated by the following grammar (e ∈ Exp(Id)): l ::= (e | e to e) [ l ] (2) CDL models. Cdl is the set of all possible models in CDL. Each CDL model m ∈ Cdl is a set of nodes, so Cdl = P(Nodes), where Nodes = Id× ⌈Id⌉ × Flavors× P(Exp(Id))×P(Exp(Id))× ⌊Exp(Id)⌋ × ⌊LExp(Id)⌋ × Kinds× P(Id) (3) 1http://ecos.sourceware.org 2http://ecos.sourceware.org/docs-3.0/cdl-guide/cdl-guide.html
منابع مشابه
A Formal Model for Web Service Choreography Description Language (WS-CDL)
The Web Services Choreography Description Language (WS-CDL) is a specification of W3C developed for the description of peer-to-peer collaborations of participants from a global viewpoint. For the rigorous definition and tools support for the language, the formal semantics of WS-CDL is worth investigating. This paper proposes a small language CDL as a formal model of simplified WSCDL, which incl...
متن کاملTowards the Formal Model and Verification of Web Service Choreography Description Language
The Web Services Choreography Description Language (WS-CDL) is a W3C specification for the description of peer-to-peer collaborations of participants from a global viewpoint. For the rigorous development and tools support for the language, the formal semantics of WS-CDL is worth investigating. This paper proposes a small language CDL as a formal model of the simplified WSCDL, which includes imp...
متن کاملWeb Service Choreography Verification Using Z Formal Specification
Web Service Choreography Description Language (WS-CDL) describes and orchestrates the services interactions among multiple participants. WS-CDL verification is essential since the interactions would lead to mismatches. Existing works verify the messages ordering, the flow of messages, and the expected results from collaborations. In this paper, we present a Z specification of WS-CDL. Besides ve...
متن کاملDynamic Semantics of Cognitive Agent Language
In this paper, I will propose a language of cognitive agents and its formal semantics by exploiting the idea of dynamic semantics. The language is an extension of FirstOrder Concurrent Dynamic Logic (CDL). In this semantics, the expressions of the language is interpreted as actions or state transitions of the Private Viewpoint Models (PVM), which are models of environments recognized by a cogni...
متن کاملCDL (Concept Description Language): A Common Language for Semantic Computing
CDL(Concept Description Language) is a computer language to describe concept structure of content. CDL consists of a variety of family languages which are based on nested network data model and concept definition dictionary. In this paper, CDL.core which is a core of CDL family languages and CDL.nl which is a basic part of conceptualization of a natural language semantics are presented. CDL is ...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2014